﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using TalentPools.DAL;
using TalentPools.Model;
namespace TalentPools.BLL
{
   public class checkresumeManager
    {
       checkresumeService cs = new checkresumeService();
        #region 根据ID获得自己的简历数目
      /// <summary>
      /// 根据ID获得自己的简历数目
      /// </summary>
      /// <param name="name">用户名</param>
      /// <returns></returns>
       public int getcountByname(string username)
       {
           return cs.getcountByname(username);
       }
        #endregion
        #region 根据ID查找自己的简历
      /// <summary>
      /// 根据ID查找自己的简历
      /// </summary>
      /// <param name="id">用户ID</param>
      /// <returns></returns>
       public List<resume> GetResumeByUserName(string username)
       {
           return new checkresumeService().GetResumeByUserName(username);
       }
          #endregion
        #region 根据Id删除自己的简历
      /// <summary>
      /// 根据Id删除自己的简历
      /// </summary>
      /// <param name="id">简历ID</param>
      /// <returns></returns>
       public bool deletResumeByid(int id)
       {
           return cs.deletResumeByid(id);
       }
        #endregion
        #region 根据简历ID查找自己的简历的详细信息
      /// <summary>
      /// 根据ID查找自己的简历的详细信息
      /// </summary>
      /// <param name="id">用户ID</param>
      /// <returns></returns>
       public List<resume> getresumeByresumeid(int id)
       {
           return cs.getresumeByresumeid(id);
       }
       public DataSet GetResumeByResumeId(int resumeId)
       {
           return cs.GetResumeByResumeId(resumeId);
       }
        #endregion
       #region 获取分页简历的数据
       public DataSet GetResumePage(int pageIndex, int pageSize, string where)
       {
           return new checkresumeService().GetResumePage(pageIndex, pageSize, where);
       }
       #endregion

       /// <summary>
       /// 根据条件查询记录数
       /// </summary>
       /// <param name="where"></param>
       /// <returns></returns>
       public int GetResumeCount(string where)
       {
           return new checkresumeService().GetResumeCount(where);
       }
    }
}
